<?php
    if($accounts->num_rows()>0){
        $account=$accounts->row();
        $date_patern = '%d/%m/%Y';
        $incrit = mdate($date_patern,$account->birthday);
        $gender = '';
        if($account->sex == TRUE){
            $gender = 'Male';
        }else{
            $gender = 'Female';
        }
    }
    $account_id = $this->session->userdata('doogy.id');
?>

<div id="acc_details" style="width: 500px;">
  <div align="left" id="title_view_profile" ><?php echo $account->display_name;?> 
  	<span class="title_view_profile_img"><a href="<?php echo site_url('message/send/'.$account->account_id)?>"><img border ="0" src="<?php echo base_url() . './assets/write_message.png'?>"/></a></span>	
    <span class="title_view_profile_right"><a href="<?php echo site_url('home/compte/'.$account->account_id)?>">Profile</a> | <a href="<?php echo site_url('home/wall_friend/'.$account->account_id)?>">Mur</a> | <a href="<?php echo site_url('home/galery_friend/'.$account->account_id)?>">Galerie</a></span>
  </div>
    <div class="recent_img">

       <table>
           
    <?php for($i=0;$i<count($recent_images);$i++):?>
        <?php $image = $recent_images[$i];?>
        <?php if($i%4==0):?>
        <tr>
        <?php endif;?>
            <td>
                <a rel="example_group" href="<?php echo base_url().'upload_photo/'.$image['image'];?>" title="<?php echo $image['title'];?>">
                    <img alt="" src="<?php echo base_url().'upload_photo/thumbs/'.$image['image'];?>" width="90px" />
                </a>
            </td>
        <?php if($i%4==3):?>
        </tr>
        <?php endif;?>
    <?php endfor;?>
</table>
 <div align="center"><font color="#5d94c5" style="font-size: normal;"><?php echo $pagination;?></font></div>


    </div>
</div>
